#ifndef NEWDIALOG_H
#define NEWDIALOG_H

//#include <QWidget>
#include <QDialog>

class QLabel;
class QLineEdit;
class QPushButton;


class NewSetting : public QDialog
{
    Q_OBJECT
public:
    explicit NewSetting(QSize *size, QString title, QDialog *parent = NULL);
    QSize *m_size = NULL;


signals:

//    void finished(int);
//    void signal_windowsize(QSize);
private:
    QPushButton *btn_confirm;
    QLabel *lab_hint;
    QLabel *lab_width;
    QLabel *lab_height;
    QLineEdit *line_width;
    QLineEdit *line_height;

    QString m_title;

    void checkConfirm();
};

#endif // NEWDIALOG_H
